package com.tyut.farmerservice.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李陈星
 * @since 2025-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user")
@ApiModel(value="TbUser对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_name", type = IdType.AUTO)
    private String userName;

    private String password;

    private String nickName;

    private String phone;

    private String identityNum;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "user普通用户，expert专家，admin管理员")
    private String role;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "积分500")
    private Integer integral;

    @ApiModelProperty(value = "信誉1，2，3，4，5")
    private Integer credit;

    @ApiModelProperty(value = "头像")
    private String avatar;

    private String realName;


}
